package com.wceManage.data.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wceManage.beans.SysRole;

public interface SysRoleMapper extends BaseMapper<SysRole> {

    SysRole getRoleByName(SysRole sysRole);

    /**
     * 维护角色与菜单权限关系
     * @param sysRole
     * @return
     */
    int deleteRoleResource(SysRole sysRole);

    int insertRoleResource(SysRole sysRole);
    
    List<SysRole> findRoleByUserId(@Param("userId") String userId);

}